projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4af59db
)
GtkStackSwitcher: center the button child
author
Lapo Calamandrei
<calamandrei@gmail.com>
Wed, 16 Jul 2014 17:35:29 +0000
(19:35 +0200)
committer
Lapo Calamandrei
<calamandrei@gmail.com>
Wed, 16 Jul 2014 17:35:29 +0000
(19:35 +0200)
Set button child halign to GTK_ALIGN_CENTER since I need it to style
the needs-attention class, see:
https://bugzilla.gnome.org/show_bug.cgi?id=707153
gtk/gtkstackswitcher.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstackswitcher.c
b/gtk/gtkstackswitcher.c
index d5b7ef1f8952393d024d1fccdc93844fbd271f6d..418f2fe8ef3b66f561da489123e893eef65007a6 100644
(file)
--- a/
gtk/gtkstackswitcher.c
+++ b/
gtk/gtkstackswitcher.c
@@
-137,6
+137,7
@@
rebuild_child (GtkWidget *self,
if (button_child)
{
+ gtk_widget_set_halign (GTK_WIDGET (button_child), GTK_ALIGN_CENTER);
gtk_widget_show_all (button_child);
gtk_container_add (GTK_CONTAINER (self), button_child);
}